﻿using System.Web.Mvc;
using NBlog.Web.Application.Service.Internal.Caching;

namespace NBlog.Web.Application.Infrastructure
{
    public class ToolsController : Controller
    {
        private readonly ICacheProvider _cacheProvider;

        public ToolsController(ICacheProvider cacheProvider)
        {
            _cacheProvider = cacheProvider;
        }

        [HttpGet]
        public void ResetCache()
        {
            _cacheProvider.Reset();
        }
    }
}